/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.servinf.ani.sincronizador.service;

import com.servinf.ani.sincronizador.dao.DepartmentDAO;
import com.servinf.ani.sincronizador.entities.Departamento;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Clase de servicios para el tipo de proyecto.
 * @author mortiz
 */
@Component
public class DepartmentService {
    
    private DepartmentDAO departmentDao;

    public DepartmentDAO getDepartmentDAO() {
        return departmentDao;
    }

    @Autowired
    public void setDepartmentDAO(DepartmentDAO departmentDao) {
        this.departmentDao = departmentDao;
    }
   
    /**
     * Retorna la lista de las generaciones o tipos de proyecto
     * @return 
     */
    public List<Departamento> findAll(){
        List<Departamento> departmentList = getDepartmentDAO().findAll();
        return departmentList;
    }
    
} 
